<?php
/*=============================================================================
|| ##################################################################
||	phpFoX Konsort
|| ##################################################################
||	
||	Copyright		: (C) 2005-2007 PHPFOX Limited a Reality Fox Creation
||	Contact			: info@phpfox.com
||
||	- phpFoX and all of its source code and files are protected by Copyright Laws. 
||
||	- The license for phpFoX permits you to install this software on a single domain (.com, .org, .net, etc.). 
||
||	- You may also not remove this copyright screen which shows the copyright information and credits for phpFoX (RealityFOX Creations). 
||
||	- phpFoX Konsort is NOT a FREE software - http://www.phpfox.com/license/
||
|| ##################################################################
=============================================================================*/

/* $File: ./include/classes/DbItemService.class.php, $Author:  $ */


/**
 * DBItem based Service
 *
 */
class DbItemService
{
    
    var $_oItem = null;
    
    function DbItemService($oItem)
    {
        $this->_oItem = &$oItem;
    }
    
    function insert($bEscape=true)
    {
        $this->_oItem->insert($bEscape);
    }
    
    
    function update($aFields=array(), $bEscape=true)
    {
        $this->_oItem->update($aFields, $bEscape);
    }
     
    function delete($mId)
    {
        $this->_oItem->delete($mId);
    }
      
    function load($nId)
    {
        $this->_oItem->load($nId);
    }
      
    function loadByCondition($sCondition)
    {
        $this->_oItem->loadByCondition($sCondition);
    }
       
    function getList($aCond=array(), $iPage=0, $iPageSize=0, $sSort='', $aFields=array())
    {
        $this->_oItem->getList($aCond, $iPage, $iPageSize, $sSort, $aFields);
    }
    
    function getHash($sValue='name', $aCond=array())
    {
        $this->_oItem->getHash($sValue, $aCond);
    }

    
}


?>